<!--新增弹窗 开始-->
<div class="modal fade" aria-labelledby="myModalLabel" aria-hidden="true" id="synonymManagementDetals" *ngIf="initService.init&&details">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">
            <input type="hidden" name="synonymId" #synonymId="ngModel" [ngModel]="details.synonymId">
            <!-- 模态框头部 -->
            <div class="modal-header">
                <h4 class="modal-title">同义词管理 - {{ details.keywords }}</h4>
                <button type="button" class="close" data-dismiss="modal">&times;</button>
            </div>

            <!-- 模态框主体  -->
            <div class="modal-body">

                <div class="container">
                    <div class="row txtTitle">
                        <input type="text" class="synonym_input_style synonym_input_add" name="synonymName" #name="ngModel" placeholder="请输入要新增的同义词名称"
                            [(ngModel)]="synonymName" />
                        <button class="btn btn-blue" (click)="createConfirm()" [disabled]="_isNameEmpty()">确定新增</button>
                    </div>
                    <div class="table-thead">
                        <table class="tableStyle table table-hover table-striped">
                            <thead>
                                <tr>
                                    <th class="w40 text-left max-w">同义词</th>
                                    <th class="w20 text-left">操作</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="table-tbody" style="border: 1px solid rgba(0,0,0,0.1);height:360px;">
                        <table class="tableStyle table table-hover table-striped">
                            <tbody>
                                <tr *ngFor="let val of tabDetailVal;let i = index">
                                    <td class="w40 text-left max-w">
                                        <span id="normal_{{val.id}}" class="normal_block">
                                            {{ val.keywords }}
                                        </span>
                                        <span id="edit_{{val.id}}" class="edit_none">
                                            <input name='{{val.id}}' type="text" #keywords value='{{val.keywords}}'
                                                class="synonym_input_style synonym_input_edit" />
                                        </span>
                                    </td>
                                    <td class="w20 text-left max-w">
                                        <span id="confirm_normal_{{val.id}}" class="normal_block">
                                            <span class="tableOperationText" (click)="click_edit(val.id)">编辑</span>
                                            <span class="tableOperationText" (click)="onDeleteConfirm(val.id)">删除</span>
                                        </span>
                                        <span id="confirm_edit_{{val.id}}" class="edit_none">
                                            <span class="tableOperationText" (click)="editConfirm(val.id,keywords.value)">保存</span>
                                            <span class="tableOperationText" (click)="cancel(val.id)">取消</span>
                                        </span>

                                    </td>
                                </tr>

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!-- 模态框底部 -->
            <div class="modal-footer" style="width:100%;">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<!--新增弹窗 结束-->